package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyl
 * @since 2018-08-03
 */
public class Weixininfo extends Model<Weixininfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 微信昵称
     */
    private String weixinnickname;
    /**
     * 微信头像
     */
    private String headimgurl;
    /**
     * 微信小程序的唯一标识符
     */
    private String openid;
    /**
     * 首次登录时间
     */
    private Date Latesttime;
    /**
     * 微信管理机制id
     */
    private String unionid;
    private String gender;
    private String province;
    private String city;
    private String country;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWeixinnickname() {
        return weixinnickname;
    }

    public void setWeixinnickname(String weixinnickname) {
        this.weixinnickname = weixinnickname;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Date getLatesttime() {
        return Latesttime;
    }

    public void setLatesttime(Date Latesttime) {
        this.Latesttime = Latesttime;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Weixininfo{" +
        "id=" + id +
        ", weixinnickname=" + weixinnickname +
        ", headimgurl=" + headimgurl +
        ", openid=" + openid +
        ", Latesttime=" + Latesttime +
        ", unionid=" + unionid +
        ", gender=" + gender +
        ", province=" + province +
        ", city=" + city +
        ", country=" + country +
        "}";
    }
}
